package com.auxgroup.smarthome.enterpriseapi.responsebody;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 单次连接时长查询
 * Created by Toby Lai on 2017/6/28.
 */
public class ConnectionDurationResponse extends AbstractErrorBody {
    @JSONField(name="1_hour")
    private DeviceCount hour_1 ;
    @JSONField(name="8_hour")
    private DeviceCount hour_8 ;
    @JSONField(name="1_day")
    private DeviceCount day_1 ;
    @JSONField(name="5_day")
    private DeviceCount day_5 ;
    @JSONField(name="1_month")
    private DeviceCount month_1 ;
    @JSONField(name="1_month_above")
    private DeviceCount month_above_1 ;
    private JSONObject online_range;

    private static class DeviceCount {
        int count;
        int device;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getDevice() {
            return device;
        }

        public void setDevice(int device) {
            this.device = device;
        }
    }

    public DeviceCount getHour_1() {
        return hour_1;
    }

    public void setHour_1(DeviceCount hour_1) {
        this.hour_1 = hour_1;
    }

    public DeviceCount getHour_8() {
        return hour_8;
    }

    public void setHour_8(DeviceCount hour_8) {
        this.hour_8 = hour_8;
    }

    public DeviceCount getDay_1() {
        return day_1;
    }

    public void setDay_1(DeviceCount day_1) {
        this.day_1 = day_1;
    }

    public DeviceCount getDay_5() {
        return day_5;
    }

    public void setDay_5(DeviceCount day_5) {
        this.day_5 = day_5;
    }

    public DeviceCount getMonth_1() {
        return month_1;
    }

    public void setMonth_1(DeviceCount month_1) {
        this.month_1 = month_1;
    }

    public DeviceCount getMonth_above_1() {
        return month_above_1;
    }

    public void setMonth_above_1(DeviceCount month_above_1) {
        this.month_above_1 = month_above_1;
    }

    public JSONObject getOnline_range() {
        return online_range;
    }

    public void setOnline_range(JSONObject online_range) {
        this.online_range = online_range;
    }
}
